package com.yixing.demo.mapper;

import com.yixing.demo.model.User;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface UserMapper {
    User login(String username);

    Integer register(User user);
    Integer uploadAvatar(String avatar, Integer userId);

    String selectAvatar(Integer userId);

    String selectAvatarByUsername(String username);
}
